package com.time.sky.mapper;

import com.time.sky.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface UserMapper {
    @Select("select * from wuye.user where username=#{username} and password=#{password}")
    User getUserByName(@Param("username") String username, @Param("password") String password);
    @Update("update wuye.user set password=#{password} where id=#{id} ")
    void updateUser(User user);
}
